﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;


namespace YoungEnterpriseServices
{
    [ServiceContract]
    public interface IDatabaseService
    {
        [OperationContract]
        int OpretTeam(string standNr, string teamNavn, string ansvarligNavn, string ansvarligEmail, string skole, string undervisersNavn, string undervisersEmail);

        [OperationContract]
        bool OpretBedømmelse(int teamId, int kategoriId, int point);

        [OperationContract]
        int OpretMesse(string navn, string sted, string dato);

        [OperationContract]
        int OpretKategori(int konkurrenceId, string navn, int maxPoint);

        [OperationContract]
        int OpretKonkurrence(string navn, int messeId);

        [OperationContract]
        bool TilknytKonkurrenceTilTeam(int teamid, int konkurrenceId);

        [OperationContract]
        bool SletTeam(int teamId);

        [OperationContract]
        bool SletKonkurrence(int konkurrenceId);

        [OperationContract]
        bool SletMesse(int messeId);

        [OperationContract]
        bool SletKategori(int kategoriId);

        [OperationContract]
        int FindMesse(string MesseNavn);

        [OperationContract]
        bool SletAlleKategorier();
    }
}
